package com.zhu.esyblog.service;

import com.zhu.esyblog.pojo.RespBean;
import com.zhu.esyblog.pojo.SysUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zhu.esyblog.vo.UserVo;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author stx
 * @since 2022-06-22
 */
public interface ISysUserService extends IService<SysUser> {
 UserVo findUserVoById(Long id);

SysUser findUserById(Long id);

    /**
     * 查询用户
     * @param account
     * @param password
     * @return
     */
    SysUser findUser(String account, String password);

    /**
     * 根据token查询用户信息
     * @param token
     * @return
     */
    RespBean findUserByToken(String token);

    /**
     * 根据账号查询用户
     * @param account
     * @return
     */
    SysUser findUserByAccount(String account);
}
